<div class="workplace">  
    <?php echo $template['partials']['loading_ajax']; ?>
    <?php echo $template['partials']['note'];?>

    <?php if(count($total_members)) : ?>
    <div class="row-fluid">
    	
        <div class="span12">                    
            <div class="head clearfix">
                <div class="isw-grid"></div>
                <h1>List Members</h1>      
                <ul class="buttons">                                                  
                    <li>
                        <a href="#" class="isw-settings"></a>
                        <ul class="dd-list">
                            <li><a href="<?=URL_ADMIN?>member/add"><span class="isw-plus"></span> Add new member</a></li>
                            <!--<li><a href="#"><span class="isw-edit"></span> Edit</a></li>-->
                            <li><a href="#"><span class="isw-delete"></span> Delete</a></li>
                        </ul>
                    </li>
                </ul>                    
            </div>
            <div class="block-fluid table-sorting clearfix">
                <table cellpadding="0" cellspacing="0" width="100%" class="table tSortable">
                    <thead>
                        <tr>
                            <th><input type="checkbox" name="checkall"/></th>
                            <th width="5%">ID</th>
                            <th width="25%">Name</th>
                            <th width="25%">E-mail</th>
                            <th width="15%">Date registed</th>
                            <th width="8%">Status</th> 
                            <th width="25%">Action</th>                                   
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach($total_members as $item) : ?>
                            <tr id="per_<?=$item['id']?>">
                                <td><input type="checkbox" name="checkbox" value="<?=$item['id']?>"/></td>
                                <td><?=$item['id']?></td>                                 
                                <td><?=$item['fullname']?></td>
                                <td><?=$item['email']?></td>  
                                <td><?=mdate("%M %d, %Y", $item['time_added'])?></td>   
                                <?php if($item['status'] == 1) : ?>              
                                	<td><span class="label label-success">Actived</span></td>
                            	<?php else :?>
                            		<td><span class="label label-success">Unactive</span></td>
                        		<?php endif ?>
                                <td>
                                    <a href="javascript:void(0)" onclick="confirm_del('<?=URL_ADMIN?>member/delete/<?=$item['id']?>', 'per_<?=$item['id']?>')" class="icon-trash tip" title="Delete this item"></a>
                                </td>
                            </tr>
                            <?php endforeach ?>          
                    </tbody>
                </table>
            </div>
        </div>                                
    	<?php endif ?>
    </div>
    <div class="dr"><span></span></div>

</div>
 